<?php

class ComplaintManager extends BaseManager implements iManager {
	
	public function query() {		
	}
	
	public function add() {
		$data['complaint_date'] = date('Y-m-d H:i:s');
		$data['sales_detail_id'] = $this->obj->getSalesDetail()->getSalesDetailId();
		$data['product_price'] = $this->obj->getProductPrice();
		$data['product_count'] = $this->obj->getProductCount();
		$data['reason'] = $this->obj->getReason();
		$data['processed_by'] = $this->obj->getProcessedBy()->getEmployeeId();
		
		$this->db->insert('complaints_tbl', $data);
		
		$this->db->execute();
	}
	
	public function update() {
	}
	
	public function delete() {
	}
}